package com.advert.boot.system.controller;

import com.advert.boot.common.result.PageResult;
import com.advert.boot.system.model.vo.OrderInfoVO;
import com.advert.boot.system.service.AdvertProductService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;


/**
 * 产品信息前端控制层
 *
 * @author Theo
 * @since 2024-07-30 11:25
 */
@Slf4j
@RestController
@RequiredArgsConstructor
@Tag(name = "13.后台管理-订单信息")
@RequestMapping("/api/v1/order")
public class AdvertOrderController {
    private final AdvertProductService productService;

    @Operation(summary = "4订单信息")
    @PutMapping("/orderPage")
    public PageResult<OrderInfoVO> orderPage() {
        return PageResult.success(productService.orderPage());
    }
}
